package com.wechat.service.quartz.bo;

import org.hibernate.validator.constraints.NotBlank;

public class InitJobBo {
	
	private String id;
	
	@NotBlank
	private String taskCron;
	@NotBlank
	private String taskName;
	@NotBlank
	private String className;
	@NotBlank
	private String taskGroup;
	@NotBlank
	private String taskDesc;
	
	private boolean taskRun;

	public String getTaskCron() {
		return taskCron;
	}

	public void setTaskCron(String taskCron) {
		this.taskCron = taskCron;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getTaskGroup() {
		return taskGroup;
	}

	public void setTaskGroup(String taskGroup) {
		this.taskGroup = taskGroup;
	}

	public String getTaskDesc() {
		return taskDesc;
	}

	public void setTaskDesc(String taskDesc) {
		this.taskDesc = taskDesc;
	}



	public boolean getTaskRun() {
		return taskRun;
	}

	public void setTaskRun(boolean taskRun) {
		this.taskRun = taskRun;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public InitJobBo() {
		super();
	}

	public InitJobBo(String taskCron, String taskName, String className, String taskGroup, String taskDesc,
			boolean taskRun,String id) {
		super();
		this.taskCron = taskCron;
		this.taskName = taskName;
		this.className = className;
		this.taskGroup = taskGroup;
		this.taskDesc = taskDesc;
		this.taskRun = taskRun;
		this.id = id;
	}
	
	public InitJobBo(String taskCron, String taskName, String className, String taskGroup, String taskDesc,
			boolean taskRun) {
		super();
		this.taskCron = taskCron;
		this.taskName = taskName;
		this.className = className;
		this.taskGroup = taskGroup;
		this.taskDesc = taskDesc;
		this.taskRun = taskRun;
		
	}

	@Override
	public String toString() {
		return "InitJobBo [taskCron=" + taskCron + ", taskName=" + taskName + ", className=" + className
				+ ", taskGroup=" + taskGroup + ", taskDesc=" + taskDesc + ", taskRun=" + taskRun + "]";
	}
}
